package com.mark.controller;


import com.mark.entity.school.UGrade;
import com.mark.service.UGradeService;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * (UGrade)表控制层
 *
 * @author Deng PengFei
 * @since 2021-10-27 11:17:04
 */
@CrossOrigin
@RestController
@RequestMapping("grade")
public class UGradeController {

    @Autowired
    private UGradeService uGradeService;


    /**
     * 获取所有的年级列表
     *
     * @return 对象列表
     */
    @GetMapping("/getGradeList")
    public List<UGrade> getGradeList() {
        return this.uGradeService.queryAll();
    }

}